package cn.smart.epic.modular.system.controller;

import cn.smart.epic.common.controller.BaseController;
import cn.smart.epic.common.persistence.dao.DictMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Auther Uncle_Z
 * @date 2017/9/19 23:35
 * @Email:2545375@qq.com
 * @Descrition
 * @since 1.0
 */

@Controller
@RequestMapping("/dict")
public class DictController extends BaseController {

    @Resource
    private DictMapper dictMapper;

    @RequestMapping("/list")
    @ResponseBody
    public List<Map<String, Object>> list(String condition) {
        return dictMapper.list(condition);
    }
}
